package top.tangyh.lamp.care.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import static com.baomidou.mybatisplus.annotation.SqlCondition.EQUAL;
import static top.tangyh.lamp.model.constant.Condition.LIKE;
import top.tangyh.basic.base.entity.Entity;


/**
 * <p>
 * 实体类
 * 归转记录表
 * </p>
 *
 * @author zqb
 * @date 2024-07-15 13:49:07
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Builder
@TableName("b_hl7_move_detail")
public class BHl7MoveDetail extends Entity<Long> {
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @TableField(value = "event_id", condition = EQUAL)
    @Schema(description = "")
    private Long eventId;
    /**
     * 病人识别号
     */
    @TableField(value = "patient_ident", condition = LIKE)
    @Schema(description = "病人识别号")
    private String patientIdent;
    /**
     * 住院号
     */
    @TableField(value = "hospital_number", condition = LIKE)
    @Schema(description = "住院号")
    private String hospitalNumber;
    /**
     * 转入时间
     */
    @TableField(value = "zr_time", condition = EQUAL)
    @Schema(description = "转入时间")
    private LocalDateTime zrTime;
    /**
     * 转出时间
     */
    @TableField(value = "zc_time", condition = EQUAL)
    @Schema(description = "转出时间")
    private LocalDateTime zcTime;
    /**
     * 当前病区
     */
    @TableField(value = "ward_ident", condition = LIKE)
    @Schema(description = "当前病区")
    private String wardIdent;

    @TableField(value = "ward_name", condition = LIKE)
    @Schema(description = "之前病区")
    private String wardName;
    /**
     * 病房
     */
    @TableField(value = "room", condition = LIKE)
    @Schema(description = "病房")
    private String room;
    /**
     * 当前病床
     */
    @TableField(value = "bed_number", condition = LIKE)
    @Schema(description = "当前病床")
    private String bedNumber;
    /**
     * 当前科室id
     */
    @TableField(value = "dept_ident", condition = LIKE)
    @Schema(description = "当前科室id")
    private String deptIdent;
    /**
     * 当前科室名
     */
    @TableField(value = "dept_name", condition = LIKE)
    @Schema(description = "当前科室名")
    private String deptName;
    /**
     * 之前病区
     */
    @TableField(value = "old_ward_ident", condition = LIKE)
    @Schema(description = "之前病区")
    private String oldWardIdent;


    /**
     * 之前病房
     */
    @TableField(value = "old_room", condition = LIKE)
    @Schema(description = "之前病房")
    private String oldRoom;
    /**
     * 之前病床
     */
    @TableField(value = "old_bed_number", condition = LIKE)
    @Schema(description = "之前病床")
    private String oldBedNumber;
    /**
     * 之前科室id
     */
    @TableField(value = "old_dept_ident", condition = LIKE)
    @Schema(description = "之前科室id")
    private String oldDeptIdent;
    /**
     * 之前科室名
     */
    @TableField(value = "old_dept_name", condition = LIKE)
    @Schema(description = "之前科室名")
    private String oldDeptName;
    /**
     * 是否自定义插入
     */
    @TableField(value = "is_diy", condition = EQUAL)
    @Schema(description = "是否自定义插入")
    private Integer isDiy;
    /**
     * 是否非计划性转入
     */
    @TableField(value = "is_not_plan", condition = EQUAL)
    @Schema(description = "是否非计划性转入")
    private Integer isNotPlan;
    /**
     * 
     */
    @TableField(value = "is_deleted", condition = EQUAL)
    @Schema(description = "")
    private Integer isDeleted;
    /**
     * 
     */



}
